//自动导入svg图标
import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon/index.vue'
Vue.component("svg-icon",SvgIcon)
const req = require.context('@/assets/icons/svg',false,/\.svg$/)
const requireAll = requireContext =>{
  // requireContext.keys()数据：['./404.svg', './agency.svg', './det.svg', './profile.svg']
  requireContext.keys().map(requireContext)
}
requireAll(req)
